/* 
 * File:   main.cpp
 * Author: max
 *
 * Created on March 23, 2013, 10:19 AM
 */

#include <cstdlib>
#include <cstdlib>
#include <iostream>
#include "Processor.h"

using namespace std;
using namespace TP3::Working;

#define SUCCESS 0
#define INVALID_ARGUMENTS 1

int main(int argc, char** argv) {

    
    int executionResult = SUCCESS;
    
    try
    {
        if (argc != 4)
            throw INVALID_ARGUMENTS;
        
        Processor processor (argv[1], argv[2], argv[3]);
        processor.Process();
    }
    catch (int ex)
    {
        executionResult = ex;
    }
    
    return executionResult;
}

